﻿@model IEnumerable<DLM.Domain.DTO.RemarkDTO>
@using Webdiyer.WebControls.Mvc;
@foreach (var item in Model)
{

        
    <div class="had_message clearfix">
        @if (item.UserPhoto == "none_75_75.png")
        {
            <img src="@Url.Content("~/Content/ad/none_45_45.png")" alt="头像" />
        }
        else
        { 
            <img src="@Url.Content("~/Files/Photos/" + item.UserID + "/Title/" + item.UserPhoto)" alt="头像" width="45px" height="45px" />
        }
        <div class="info">
            <div class="title">
                <span></span>@item.CreateDate</div>
            <div class="detail">
                @item.Content</div>
        </div>
    </div>
}
<div class="paging">
    @Ajax.Pager(Model as PagedList<DLM.Domain.DTO.RemarkDTO>, new PagerOptions
{
    PageIndexParameterName = "remarkid",
    CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>",
    //NumericPagerItemWrapperFormatString = "<a>{0}</a>",
    PrevPageText = "<",
    NextPageText = ">",
    ShowNumericPagerItems = true,
    ShowFirstLast = false,
    ShowPrevNext = true,
    CssClass = "scott",
    MorePageText = "...",
    SeparatorHtml = ""
},
               new AjaxOptions { UpdateTargetId = "divRemark" }
    )
</div>
